﻿using System;
using System.Collections.Generic;

namespace Z.GenerateIconProject.WinForm.BL
{
    public partial class ApplicationConfiguration
    {
        public List<ApplicationProject> Projects = new List<ApplicationProject>();

        private static string _ConfigurationFilePath = "";

        private static string ConfigurationConfigurationFilePath
        {
            get
            {
                if (string.IsNullOrEmpty(_ConfigurationFilePath))
                {
                    string dir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
                    string file = dir.PathCombine("ZZZ Projects", "IconLibraryGenerator", "ApplicationConfiguration.xml");

                    _ConfigurationFilePath = file;
                }

                return _ConfigurationFilePath;
            }
        }
    }
}